<template>
  <div class="hello"></div>
</template>

<script>
import { getArtInfo, getArtIndex } from "@/api/art.js";
export default {
  name: "HelloWorld",
  data() {
    return {
      msg: "Welcome to Your Vue.js App",
   
    };
  },
  async mounted() {
    this.getArtIndex()
  },
  methods: {
    async getArtIndex() {
      const sendData1 = {
        min_time: "2022-01-01",
        max_time: "2022-04-03",
        docid: "bbe67a1da32ee974b4c5f41add103022",
        source: "people",
        query: "航天梦",
        author: "张  晔",
        page: 0,
        size: 2,
      };
      let res = await getArtIndex(sendData1);
      console.log(res);
    },
  },
};
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
h1,
h2 {
  font-weight: normal;
}
ul {
  list-style-type: none;
  padding: 0;
}
li {
  display: inline-block;
  margin: 0 10px;
}
a {
  color: #42b983;
}
</style>
